<template>
  <section>
    <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
      <el-tab-pane v-for="(item, index) in acList" :label="item.label" :name="item.name" :key="index"></el-tab-pane>
      <!-- <el-tab-pane label="消费记录" name="record"></el-tab-pane> -->
    </el-tabs>
    <div>
      <comm :is="activeName"></comm>
    </div>
  </section>
</template>
<script>
import PharmacyStatistics from "./pharmacyStatistics";

export default {
  name: "chargeIndex",
  data() {
    return {
      activeName: "cost",
      acList: [
        {
          label: "费用统计",
          name: "cost",
        },
        {
          label: "医务统计",
          name: "medical",
        },
        {
          label: "来源统计",
          name: "sourcestat",
        },
        {
          label: "随访统计",
          name: "visitStatistics",
        },
        {
          label: "药房统计",
          name: "PharmacyStatistics",
        },
      ],
      active: false,
      detail: "",
    };
  },
  created() {},
  mounted() {
    let th = this;
    th.active = true;
  },
  methods: {
    handleClick(tab, event) {},
  },
  components: {
    cost: () => import("./_child/cost"),
    medical: () => import("./_child/medical"),
    sourcestat: () => import("./_child/sourcestat"),
    visitStatistics: () => import("./_child/visitStatistics"),
    PharmacyStatistics,
  },
};
</script>
<style lang="scss" scoped></style>
